package eng.jTrussSolver.AssemblerResults;

public class NodeDisplacementData {
	
	public int nodeID;
	public double newX,newY;
	
	
	public NodeDisplacementData() {
		
		this.nodeID = 0;
		this.newX = 0;
		this.newY = 0;
	}
	
	
	public NodeDisplacementData(int nodeID, double newX, double newY) {
		
		this.nodeID = nodeID;
		this.newX = newX;
		this.newY = newY;
	}
	
	
	public int getNodeID() {
		return this.nodeID;
	}
	
	public double getNewX() {
		return this.newX;
	}
	
	public double getNewY() {
		return this.newY;
	}
	
	public void setNodeDisplacement(int ID, double newX, double newY) {

		
		this.nodeID = ID;
		this.newX = newX;
		this.newY = newY;
	}
	
	public String getNodeDisplacementDataAsString()
	{
		String str="";
		str += "ID:"+ nodeID+"\t";
		str += "newX:"+ newX+"\t";
		str += "newY:"+ newY;
		return str;
		
	}

}
